package com.git_taoxian.test8;

import java.time.LocalTime;

public class Goods {
//    私有成员变量
    private String name;
    private int number;
    private LocalTime beginTime;
    private LocalTime endTime;
//    构造方法
    public Goods() {
    }
    public Goods(String name, int number) {
        this.name = name;
        this.number = number;
    }
//    重写toString方法

    @Override
    public String toString() {
        return "Goods{" +
                "商品名称='" + this.name + '\'' +
                ", 库存数量" +
                "=" + this.number +
                '}';
    }

//    getter setter 方法

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getNumber() {
        return number;
    }

    public void setNumber(int number) {
        this.number = number;
    }

    public LocalTime getBeginTime() {
        return beginTime;
    }

    public void setBeginTime(LocalTime beginTime) {
        this.beginTime = beginTime;
    }

    public LocalTime getEndTime() {
        return endTime;
    }

    public void setEndTime(LocalTime endTime) {
        this.endTime = endTime;
    }
}
